package com.platform.system.service;

import com.platform.common.core.domain.AjaxResult;
import com.platform.common.core.page.TableDataInfo;
import com.platform.system.domain.dto.device.FirmwareInfoDto;
import com.platform.system.domain.vo.device.FirmwareInfoVo;

import java.util.List;

/**
 * @author Huangkai
 */
public interface ISysFirmwareInfoService {

    /**
     * 查询固件列表
     * @param firmwareInfoVo
     * @return
     */
    TableDataInfo selectFirmwareInfoList(FirmwareInfoVo firmwareInfoVo);

    /**
     * 根据uid查询
     * @param uidList
     * @return
     */
    List<FirmwareInfoDto> selectFirmwareInfoByUidList(List<String> uidList);

    /**
     * 查询详情
     * @param uid
     * @return
     */
    FirmwareInfoDto selectFirmwareInfo(String uid);

    /**
     * 版本获取
     * @param version
     * @param type
     * @return
     */
    FirmwareInfoDto selectFirmwareInfoByVersion(String version, Integer type);

    /**
     * 插入
     * @param firmwareInfoVo
     * @return
     */
    AjaxResult insertFirmwareInfo(FirmwareInfoVo firmwareInfoVo);

    /**
     * 修改
     * @param firmwareInfoVo
     * @return
     */
    AjaxResult updateFirmwareInfo(FirmwareInfoVo firmwareInfoVo);

    /**
     * 删除
     * @param firmwareInfoVo
     * @return
     */
    AjaxResult delFirmwareInfo(FirmwareInfoVo firmwareInfoVo);

}
